package com.css.fxfzypg.modules.model.repository;

import com.css.fxfzypg.modules.model.entity.Material;
import com.css.fxfzypg.modules.model.vo.MaterialVO;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author DBJ
 */
public interface MaterialRepository {
    Map<String, Object> findPage(MaterialVO vo, int curPage, int pageSize);

    Material getModelById(String id);

    Material getDefaultModel();
    List<Material> getByDivision(String province, String city, int isNa);

    void save(Material material);

    void update(Material material);

    void delete(String userId, Date date, String id);

    Integer countByProvince(String province);

    Integer countByYearPrefixLike(String taskYear, String currProvinceId);
}
